<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8;">
</head>
<body>
    <form id="fm1" action="./last.html" method="get">
    <div>
        账号：<input id="username" name="username" class="login_input1" tabindex="1" accesskey="n" type="text" value="" size="25" maxlength="40" autocomplete="false">
    </div>
    <div>
        密码：<input id="password" name="password" class="login_input1" tabindex="2" onkeydown="javascript:butOnClick();" accesskey="p" type="password" value="" size="25" maxlength="40" autocomplete="off">
    </div>
    <input type="button" id="submit_login" value="登录" onclick="doSubmit();" style="float: left;">
    <script language="javascript">
        var doSubmit = function() {
            var pwd = document.forms[0].password.value;
            var username = document.forms[0].username.value;
            if(username == null || username == "") {
                alert("请输入用户名!");
                return;
            }
            if(pwd == null || pwd == "") {
                alert("请输入密码!");
                return;
            }

            document.forms[0].password.value = 'password already changed, and this is encrypt pwd *************************';
            document.forms[0].submit();
        };
    </script>
    
</body>
</html>
